package com.xy.p2p.model;

import java.util.Date;
/**
 * Tfileaveamessage entity. @author MyEclipse Persistence Tools
 */

public class Tfileaveamessage implements java.io.Serializable,Comparable<Tfileaveamessage> {

	// Fields

	private Long filmid;
	private Tfinanceinfo Tfinanceinfo;
	private Tmember Tmember;
	private String lmconten;
	private Date lmdate;

	// Constructors

	/** default constructor */
	public Tfileaveamessage() {
	}

	/** full constructor */
	public Tfileaveamessage(Tfinanceinfo Tfinanceinfo, Tmember Tmember, String lmconten, Date lmdate) {
		this.Tfinanceinfo = Tfinanceinfo;
		this.Tmember = Tmember;
		this.lmconten = lmconten;
		this.lmdate = lmdate;
	}

	public Long getFilmid() {
		return filmid;
	}

	public void setFilmid(Long filmid) {
		this.filmid = filmid;
	}

	public Tfinanceinfo getTfinanceinfo() {
		return Tfinanceinfo;
	}

	public void setTfinanceinfo(Tfinanceinfo tfinanceinfo) {
		Tfinanceinfo = tfinanceinfo;
	}

	public Tmember getTmember() {
		return Tmember;
	}

	public void setTmember(Tmember tmember) {
		Tmember = tmember;
	}

	public String getLmconten() {
		return lmconten;
	}

	public void setLmconten(String lmconten) {
		this.lmconten = lmconten;
	}

	public Date getLmdate() {
		return lmdate;
	}

	public void setLmdate(Date lmdate) {
		this.lmdate = lmdate;
	}

	@Override
	public int compareTo(Tfileaveamessage o) {
		return (int) (o.getLmdate().getTime()/60000-this.getLmdate().getTime()/60000);
	}

	// Property accessors

}